package com.xtpt.disaster.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Component
public class ActionParameters implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 远程调用url地址
     */
    @ApiModelProperty(value = "远程调用url地址")
    private String requestUrl;
    /**
     * 远程接口调用方法（GET、POST）
     */
    @ApiModelProperty(value = "远程接口调用方法（GET、POST）")
    private String requestMethod;
    /**
     * 调用远程接口时传递的参数
     */
    @ApiModelProperty(value = "调用远程接口时传递的参数")
    private Object requestParameters;

    public ActionParameters() {
    }

    public ActionParameters(String requestUrl, String requestMethod, Object requestParameters) {
        this.requestUrl = requestUrl;
        this.requestMethod = requestMethod;
        this.requestParameters = requestParameters;
    }
}
